package com.zs.zcerp.entrance.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zs.zcerp.entrance.entity.AhHoliday;

/**
 * @author
 */
public interface AhHolidayMapper extends BaseMapper<AhHoliday> {

    /**
     * 检查日期是否有重叠
     *
     * @param startDate
     * @param endDate
     * @return
     */
    Integer countByDate(AhHoliday ahHoliday);

    /**
     * 获取请假单编号
     * @param orgId
     * @return
     */
    String getAhHolidayId(Integer orgId);
}
